//
//  PlayerManagedObject.h
//  prototype
//
//  Created by OS X on 11-12-18.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>

@class GameManagedObject;

@interface PlayerManagedObject: NSManagedObject

+ (PlayerManagedObject *)playerWithResult:(NSDictionary *)result inManagedContext:(NSManagedObjectContext *)context;

@property (nonatomic, retain) NSData *face;
@property (nonatomic, retain) NSString *name;
@property (nonatomic, retain) NSNumber *ai;
@property (nonatomic, retain) NSNumber *wins;
@property (nonatomic, retain) NSNumber *draws;
@property (nonatomic, retain) NSNumber *losses;
@property (nonatomic, retain) NSOrderedSet *played;
@end

@interface PlayerManagedObject (CoreDataGeneratedAccessors)

- (void)insertObject:(GameManagedObject *)value inPlayedAtIndex:(NSUInteger)idx;
- (void)removeObjectFromPlayedAtIndex:(NSUInteger)idx;
- (void)insertPlayed:(NSArray *)value atIndexes:(NSIndexSet *)indexes;
- (void)removePlayedAtIndexes:(NSIndexSet *)indexes;
- (void)replaceObjectInPlayedAtIndex:(NSUInteger)idx withObject:(GameManagedObject *)value;
- (void)replacePlayedAtIndexes:(NSIndexSet *)indexes withPlayed:(NSArray *)values;
- (void)addPlayedObject:(GameManagedObject *)value;
- (void)removePlayedObject:(GameManagedObject *)value;
- (void)addPlayed:(NSOrderedSet *)values;
- (void)removePlayed:(NSOrderedSet *)values;

@end
